Skip to content

Conversation

@k-fish
Copy link
Member

@k-fish k-fish commented Nov 7, 2025

Summary

Need to update them to only fire once per dep updates, and not on empty content.

Need to update them to only fire once per dep updates, and not on empty content.
@k-fish k-fish requested a review from a team as a code owner November 7, 2025 18:42
@k-fish k-fish enabled auto-merge (squash) November 7, 2025 18:42
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 7, 2025
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Analytics: Inconsistent Empty Data Events

The aggregate mode analytics in useMetricsPanelAnalytics doesn't check for empty dataScanned before firing, while the samples mode does. Since both modes use the same dataScanned variable from metricSamplesTableResult and send it in analytics, this creates inconsistent behavior where aggregate mode fires analytics events with empty data even when samples mode correctly prevents them.

static/app/views/explore/hooks/useAnalytics.tsx#L784-L787

`,
{isAnalytics: true}
);
}, [

Fix in Cursor Fix in Web


@k-fish k-fish merged commit 8a12a05 into master Nov 7, 2025
48 checks passed
@k-fish k-fish deleted the fix/tracemetrics/analytics-events-firing branch November 7, 2025 18:53
Jesse-Box pushed a commit that referenced this pull request Nov 12, 2025
### Summary
Need to update them to only fire once per dep updates, and not on empty
content.
andrewshie-sentry pushed a commit that referenced this pull request Nov 13, 2025
### Summary
Need to update them to only fire once per dep updates, and not on empty
content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants